package com.cynthia.system.service.impl;

import com.cynthia.system.model.SysPermission;
import com.cynthia.system.mapper.SysPermissionMapper;
import com.cynthia.system.service.ISysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 权限 服务实现类
 * </p>
 *
 * @author cynthia
 * @since 2021-12-15
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements ISysPermissionService {

    @Autowired
    private SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> queryPermissionList() {
        return sysPermissionMapper.selectList(null);
    }
}
